


import axios from "../../../utils/axios";

// 全部服务
export const AllServices = () => {
   return axios({
      method: 'get',
      url: '/prod-api/api/service/list',

   })
}
//获取医院列表
export const getHospital = () => {
   return axios({
      method: 'get',
      url: '/prod-api/api/hospital/hospital/list'
   })
}
export const getHDetail = (id: any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/hospital/hospital/' + id
   })
}
export const getHCard = () => {
   return axios({
      method: 'get',
      url: '/prod-api/api/hospital/patient/list'
   })
}


export const addCard = (data: any) => {
   return axios({
      method: 'post',
      url: '/prod-api/api/hospital/patient',
      data
   })
}


export const getMan = (data: any) => {
   return axios({
      method: 'put',
      url: '/prod-api/api/hospital/patient',
      data
   })
}



//志愿服务

//获取志愿列表
export const getVList = () => {
   return axios({
      method: 'get',
      url: '/prod-api/api/volunteer-service/news/list?pageNum=1&pageSize=12'
   })
}












// 停车场

// 查询停车场列表
export const ParkListApi = (params: any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/lot/list',
      params,
   })
}
// 查询停车场详情
export const ParkApi = (id: any) => {
   return axios({
      method: 'get',
      url: `/prod-api/api/park/lot/${id}`,
      params: {

      }
   })
}

// 查询停车记录列表
export const RecordApi = (params: any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/lot/record/list',
      params
   })
}

// 查询车辆信息
export const ParkCarApi = () => {
   return axios({
      method: 'get',
      url: '/prod-api/park/car/list',
      params: {

      }
   })
}

// 停车场充值相关接口
// 充值
export const payApi = (num: Number) => {
   return axios({
      method: 'post',
      url: `/prod-api/api/park/recharge/pay?money=${num}`,
      data: {
         money: num,
      },
      headers: {
         'Authorization': window.localStorage.getItem('token')
      }
   })
}

// 查询充值记录列表
export const ParkRechargeApi = (params: any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/recharge/list',
      params,
      headers: {
         'Authorization': window.localStorage.getItem('token')
      }
   })
}


// 广告列表
export const rotationApi = () => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/rotation/list',
      params: {

      }
   })
}

// 新增意见
export const feedbackApi = (data: any) => {
   return axios({
      method: 'post',
      url: '/prod-api/api/park/feedback',
      data
   })
}

// 查询意见反馈列表
export const feebbackListApi = (params: any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/feedback/list',
      params
   })
}
// 获取意见反馈详细信息
export const feebbackHqApi = (id: any) => {
   return axios({
      method: 'get',
      url: `/prod-api/api/park/feedback/ + ${id}`
   })
}

// 获取新闻列表
export const parkPressApi = (params : any) => {
   return axios({
      method: 'get',
      url: '/prod-api/api/park/press/press/list',
      params
   })
}

//获取新闻详细信息
export const parkPress = (id: any) => {
   return axios({
      method: 'get',
      url: `/prod-api/api/park/press/press/+ ${id}`
   })
}